<?php

/**
 * 文章视图模型
 * @author MrHan<hcj112@163.com>
 */

import('ViewModel', EXTEND_PATH . 'Model/');
class ArticleViewModel extends ViewModel
{
    public $viewFields = array(
        'Article' => array('id', 'cid', 'title', 'comment_count', 'create_time', 'content', 'tags', 'read_count', 'comment_status'),
        'Category' => array('status' => 'cstatus', '_on' => 'Article.cid=Category.id'),
    );
}